package com.ourteam.system.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-07-31 15:13:22
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class SysEventLogType implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private String eventTypeCode;

    /**
     * Attribute eventTypeCode Be Seted Falg
     */
    private boolean eventTypeCodeSetted = false;

    /**
    * Attribute eventTypeCode is Null Falg
    */
    private boolean eventTypeCodeNull = false;
    private String eventTypeName;

    /**
     * Attribute eventTypeName Be Seted Falg
     */
    private boolean eventTypeNameSetted = false;

    /**
    * Attribute eventTypeName is Null Falg
    */
    private boolean eventTypeNameNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private String eventContentTemplate;

    /**
     * Attribute eventContentTemplate Be Seted Falg
     */
    private boolean eventContentTemplateSetted = false;

    /**
    * Attribute eventContentTemplate is Null Falg
    */
    private boolean eventContentTemplateNull = false;
    private long eventDomainId;

    /**
     * Attribute eventDomainId Be Seted Falg
     */
    private boolean eventDomainIdSetted = false;

    /**
    * Attribute eventDomainId is Null Falg
    */
    private boolean eventDomainIdNull = false;
    private String eventDomainName;

    /**
     * Attribute eventDomainName Be Seted Falg
     */
    private boolean eventDomainNameSetted = false;

    /**
    * Attribute eventDomainName is Null Falg
    */
    private boolean eventDomainNameNull = false;

    public SysEventLogType() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get eventTypeCode
         *
         * @return String
         */
    final public String getEventTypeCode() {
        if (isEventTypeCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(eventTypeCode);
        }
    }

    /**
     * Set eventTypeCode
     *
     * @param String
     */
    final public void setEventTypeCode(String eventTypeCode) {
        this.eventTypeCode = StringUtils.trim(eventTypeCode);

        this.eventTypeCodeSetted = true;

        this.setEventTypeCodeNull(this.eventTypeCode == null);
    }

    /**
     * Get eventTypeCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isEventTypeCodeSetted() {
        return this.eventTypeCodeSetted;
    }

    /**
     * Set eventTypeCode Null
     *
     */
    final public void setEventTypeCodeNull() {
        this.eventTypeCodeNull = true;
    }

    final public void setEventTypeCodeNull(boolean aNullFlag) {
        this.eventTypeCodeNull = aNullFlag;
    }

    final public boolean isEventTypeCodeNull() {
        return this.eventTypeCodeNull;
    }

    /**
         * Get eventTypeName
         *
         * @return String
         */
    final public String getEventTypeName() {
        if (isEventTypeNameNull()) {
            return null;
        } else {
            return StringUtils.trim(eventTypeName);
        }
    }

    /**
     * Set eventTypeName
     *
     * @param String
     */
    final public void setEventTypeName(String eventTypeName) {
        this.eventTypeName = StringUtils.trim(eventTypeName);

        this.eventTypeNameSetted = true;

        this.setEventTypeNameNull(this.eventTypeName == null);
    }

    /**
     * Get eventTypeName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isEventTypeNameSetted() {
        return this.eventTypeNameSetted;
    }

    /**
     * Set eventTypeName Null
     *
     */
    final public void setEventTypeNameNull() {
        this.eventTypeNameNull = true;
    }

    final public void setEventTypeNameNull(boolean aNullFlag) {
        this.eventTypeNameNull = aNullFlag;
    }

    final public boolean isEventTypeNameNull() {
        return this.eventTypeNameNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get eventContentTemplate
         *
         * @return String
         */
    final public String getEventContentTemplate() {
        if (isEventContentTemplateNull()) {
            return null;
        } else {
            return StringUtils.trim(eventContentTemplate);
        }
    }

    /**
     * Set eventContentTemplate
     *
     * @param String
     */
    final public void setEventContentTemplate(String eventContentTemplate) {
        this.eventContentTemplate = StringUtils.trim(eventContentTemplate);

        this.eventContentTemplateSetted = true;

        this.setEventContentTemplateNull(this.eventContentTemplate == null);
    }

    /**
     * Get eventContentTemplate Has Been Setted
     *
     * @return boolean
     */
    final public boolean isEventContentTemplateSetted() {
        return this.eventContentTemplateSetted;
    }

    /**
     * Set eventContentTemplate Null
     *
     */
    final public void setEventContentTemplateNull() {
        this.eventContentTemplateNull = true;
    }

    final public void setEventContentTemplateNull(boolean aNullFlag) {
        this.eventContentTemplateNull = aNullFlag;
    }

    final public boolean isEventContentTemplateNull() {
        return this.eventContentTemplateNull;
    }

    /**
         * Get eventDomainId
         *
         * @return long
         */
    final public long getEventDomainId() {
        return eventDomainId;
    }

    /**
     * Set eventDomainId
     *
     * @param long
     */
    final public void setEventDomainId(long eventDomainId) {
        this.eventDomainId = eventDomainId;

        this.eventDomainIdSetted = true;

        this.setEventDomainIdNull(false);
    }

    /**
     * Get eventDomainId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isEventDomainIdSetted() {
        return this.eventDomainIdSetted;
    }

    /**
     * Set eventDomainId Null
     *
     */
    final public void setEventDomainIdNull() {
        this.eventDomainIdNull = true;
    }

    final public void setEventDomainIdNull(boolean aNullFlag) {
        this.eventDomainIdNull = aNullFlag;
    }

    final public boolean isEventDomainIdNull() {
        return this.eventDomainIdNull;
    }

    /**
         * Get eventDomainName
         *
         * @return String
         */
    final public String getEventDomainName() {
        if (isEventDomainNameNull()) {
            return null;
        } else {
            return StringUtils.trim(eventDomainName);
        }
    }

    /**
     * Set eventDomainName
     *
     * @param String
     */
    final public void setEventDomainName(String eventDomainName) {
        this.eventDomainName = StringUtils.trim(eventDomainName);

        this.eventDomainNameSetted = true;

        this.setEventDomainNameNull(this.eventDomainName == null);
    }

    /**
     * Get eventDomainName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isEventDomainNameSetted() {
        return this.eventDomainNameSetted;
    }

    /**
     * Set eventDomainName Null
     *
     */
    final public void setEventDomainNameNull() {
        this.eventDomainNameNull = true;
    }

    final public void setEventDomainNameNull(boolean aNullFlag) {
        this.eventDomainNameNull = aNullFlag;
    }

    final public boolean isEventDomainNameNull() {
        return this.eventDomainNameNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof SysEventLogType) == false) {
            return false;
        }

        SysEventLogType other = (SysEventLogType) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("eventTypeCode=");
        buffer.append(this.eventTypeCode);

        buffer.append("eventTypeName=");
        buffer.append(this.eventTypeName);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("eventContentTemplate=");
        buffer.append(this.eventContentTemplate);

        buffer.append("eventDomainId=");
        buffer.append(this.eventDomainId);

        buffer.append("eventDomainName=");
        buffer.append(this.eventDomainName);

        buffer.append("]");

        return buffer.toString();
    }
}
